package yb.ecp.fast.user.dao.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yb.ecp.fast.user.dao.entity.CustomerDO;
import yb.ecp.fast.user.service.VO.CustomerVO;

import java.util.List;

@Mapper
public interface CustomerMapper {

    CustomerDO getByopenId(@Param("orgId")String orgId, @Param("openId")String openId);

    CustomerDO getByMobilePhone(@Param("orgId")String orgId, @Param("mobilePhone")String mobilePhone);

    List<CustomerDO> queryList(@Param("wrap") CustomerVO vo);

    int insert(CustomerDO model);

    int insertNotNull(CustomerDO model);

    int updateByPrimaryKeySelective(CustomerDO bean);

    int deleteByPrimaryKeySelective(long id);
}
